﻿using NovoUI.UserCtrl;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NovoSerDes.A2B.Forms
{
    public partial class XmlDataGrid : UIForm
    {
        public XmlDataGrid()
        {
            InitializeComponent();
        }

       public XmlDataGrid(DataTable table)
        {
            InitializeComponent();
            dataGrid_Xml.DataSource = table;
        }

        private void dataGrid_Xml_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == dataGrid_Xml.Columns["Values"].Index && e.RowIndex >= 0)
            {
                string values = dataGrid_Xml.Rows[e.RowIndex].Cells["Values"].Value.ToString();
                MessageBox.Show(values, "Values", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }
}
